<%--
  Created by IntelliJ IDEA.
  User: hp
  Date: 2018/9/16
  Time: 21:29
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
  <head>
    <title>登录界面</title>
  </head>
  <body>
  <script type="text/javascript">
      function isUser() {
          if(document.login_form.type.value=="user"){
              document.login_form.action = "login-userlogin.action"
          }else {
              document.login_form.action = "login-adminlogin.action"
          }
          document.login_form.submit();
      }
  </script>

  <%--<s:text name="index.form.head"></s:text>--%>
  <%--<s:form name="login_form"  >--%>
    <%--账号:<s:textfield type="text"  key="index.form.account"/>--%>
    <%--密码:<s:textfield type="password" key="index.form.password"/>--%>
    <%--账户类型:<s:select  list="#{'user'='user' and 'admin'='admin'}" key="index.form.UserType">--%>

  <%--</s:select><br>--%>
    <%--<s:submit key="index.form.login" onclick="isUser()"/>--%>
  <%--</s:form>--%>
  <%--<a href="test/mylanguage.action?request_locale=zh_CN">中文</a>--%>
  <%--<a href="test/mylanguage.action?request_locale=en_US">english</a>--%>


  <form name="login_form"  >
    账号:<input type="text" name="account"><br>
    密码:<input type="password" name="password"><br>
    账户类型:<select name="type">
      <option value="user">用户</option>
      <option value="admin">管理员</option>
    </select><br>
    <input type="button" onclick="isUser()" value="登录"><br>
  </form>
  </body>

</html>
